/**
 *
 * Copyright by Samuel Castro & Joaquim Fonseca, 2011
 * All Rights Reserved
 *
 * NOTES:
 * Please do not redistribute this plugin without my permission
 * Plugin made for private use only
 *
 */
package com.SySammy.sdMiningChallenge.prop;

public class MiningProperties {

    private static final String currencyDIR = "plugins/RPGmod/miningChallenge/";
    public static int challengeCost;
    public static int WaitingTime;
    public static int MinPlayers;
    public static int MaxTime;
    public static String ores;

    public static void loadMiningProps() {
        String propFile = currencyDIR + "miningchallenge.prop";
        propertiesMethods prop = new propertiesMethods(propFile);
        prop.loadPro();
        WaitingTime = prop.getInteger("Waiting_Time", 1);
        MinPlayers = prop.getInteger("Min_Players", 2);
        challengeCost = prop.getInteger("challenge_Cost", 500);
        ores = prop.getString("ORES", "COAL_ORE;IRON_ORE;GOLD_ORE;REDSTONE_ORE;DIAMOND_ORE");
        MaxTime = prop.getInteger("MaxTime", 3600);
        prop.SavePro("== RPGmod Mining Challenge Properties ==");
    }
}
